package com.ruoyi.sessions.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会话对象 sessions
 * 
 * @author lin
 * @date 2025-03-04
 */
public class Sessions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 播放时间 */
    @Excel(name = "播放时间")
    private String timestamp;

    /** 歌曲数量 */
    @Excel(name = "歌曲数量")
    private Long songCount;

    /** 总时长 */
    @Excel(name = "总时长")
    private Long totalDuration;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTimestamp(String timestamp) 
    {
        this.timestamp = timestamp;
    }

    public String getTimestamp() 
    {
        return timestamp;
    }
    public void setSongCount(Long songCount) 
    {
        this.songCount = songCount;
    }

    public Long getSongCount() 
    {
        return songCount;
    }
    public void setTotalDuration(Long totalDuration) 
    {
        this.totalDuration = totalDuration;
    }

    public Long getTotalDuration() 
    {
        return totalDuration;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("timestamp", getTimestamp())
            .append("songCount", getSongCount())
            .append("totalDuration", getTotalDuration())
            .append("userId", getUserId())
            .toString();
    }
}
